package cn.zh.planmanager.api.convert;

import cn.zh.planmanager.api.dto.PlanDTO;
import cn.zh.planmanager.application.bo.PlanBO;
import org.springframework.beans.BeanUtils;
import org.springframework.lang.NonNull;

/**
 * @author zh
 */
public class PlanDTOConvert {

    public static PlanDTO convertToDTO(@NonNull PlanBO bo){
        PlanDTO dto = new PlanDTO();
        BeanUtils.copyProperties(bo, dto);
        return dto;
    }
}
